export type LeaveModel = {
  id: string | number //id
  totalCount: number //列表个数
  list: any //列表
  fileList: any //附件列表
  entityId: string //流程id
  workFlowList: any
  children: any
  leaveApplyId: any
  reportingLeaveReason: any
  leaveType: any
}

const api: ApiConfig = {
  // 请假列表
  leaveList: {
    method: 'GET',
    url: '/oa/leaveApply/list'
  },
  // 请假详情
  leaveInfo: {
    method: 'GET',
    url: '/oa/leaveApply/info/:id'
  },
  // 请假-新增
  leaveAdd: {
    method: 'POST',
    url: '/oa/leaveApply/save'
  },
  // 请假-修改
  leaveUpdate: {
    method: 'POST',
    url: '/oa/leaveApply/update'
  },
  // 销假列表
  shredLeaveList: {
    method: 'GET',
    url: '/oa/leaveReportingApply/list'
  },
  // 销假详情
  shredLeaveInfo: {
    method: 'GET',
    url: '/oa/leaveReportingApply/info/:id'
  },
  // 销假-新增
  shredLeaveAdd: {
    method: 'POST',
    url: '/oa/leaveReportingApply/save'
  },
  // 销假-修改
  shredLeaveUpdate: {
    method: 'POST',
    url: '/oa/leaveReportingApply/update'
  },
  // 部门统计列表
  depLeaveList: {
    method: 'GET',
    url: '/oa/leaveApply/deptList'
  },
   // 获取最后的假期可选日期
   getLastLeaveEndTime: {
    method: 'GET',
    url: '/oa/leaveApply/getLastLeaveEndTime'
  },
  // 部门统计列表-导出
  depLeaveExport: {
    method: 'GET',
    url: '/oa/leaveApply/deptListExport',
    responseType: 'blob'
  },
  // 全馆统计列表
  allLeaveList: {
    method: 'GET',
    url: '/oa/leaveApply/allList'
  },
  // 全馆统计列表-导出
  allLeaveExport: {
    method: 'GET',
    url: '/oa/leaveApply/allListExport',
    responseType: 'blob'
  },
  // 获取休息天数
  userLeave: {
    method: 'GET',
    url: '/oa/leaveApply/getUserLeave'
  },
  // 获取真实假期天数
  getLeaveCountDay: {
    method: 'POST',
    url: '/oa/leaveApply/getLeaveCountDay'
  }
}

export default api
